Thumbnail of video that would appear in the stream |
| |||
Does anyone know how to have the Thumbnail of a Youtube video appear along with the stream? Thanks!
|
| |||
I was also thinking about it..
|
| |||
Found a way to get the thumbnail to show. First you have to edit common.inc.php and find this: $att .= '<div class="att_name">'.url($attachment['uri'],h($attachment['name'])).'</div>'; and replace with this: $att .= '<div class="att_name">'.url($attachment['uri'],h($attachment['name'])).'</div><a href="'.uhome().'/'.$attachment['uri'].'" /><img src="'.uhome().'/'.$attachment['thumb'].'" /></a>';
|
| |||
[quote=karen]Found a way to get the thumbnail to show. First you have to edit common.inc.php and find this: $att .= '<div class="att_name">'.url($attachment['uri'],h($attachment['name'])).'</div>'; and replace with this: $att .= '<div class="att_name">'.url($attachment['uri'],h($attachment['name'])).'</div><a href="'.uhome().'/'.$attachment['uri'].'" /><img src="'.uhome().'/'.$attachment['thumb'].'" /></a>';[/quote] Hmmm doesn't do anything for me..
|
| |||
nothing
|
| |||
[quote=switch48] Hmmm doesn't do anything for me.. [/quote] nothing for me too
|
| |||
Add your video via the Dashboard Ajax Form. It works only from there, using the Ajax form, I don't know how to make it work from the regular Video form.
|
| |||
Add your video via the Dashboard Ajax Form. It works only from there, using the Ajax form, I don't know how to make it work from the regular Video form.
|
| |||
Add your video via the Dashboard Ajax Form. It works only from there, using the Ajax form, I don't know how to make it work from the regular Video form.
|
| |||
[quote=karen]Add your video via the Dashboard Ajax Form. It works only from there, using the Ajax form, I don't know how to make it work from the regular Video form. [/quote] the code is not working.Getting error from the database.
|
| |||
I have tried..
|
| |||
thanks karen it is working in 4.1 version
|